﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.Core.Exceptions
{
    /// <summary>
    /// 数据格式不正确引发的异常
    /// </summary>
    public class PayDataFormatException : PayException
    {
        /// <summary>
        /// 实例化 PayDataFormatException 类新实例
        /// </summary>
        public PayDataFormatException()
        {
        }

        /// <summary>
        /// 实例化 PayDataFormatException 类新实例
        /// </summary>
        /// <param name="message">消息</param>
        public PayDataFormatException(string message)
            : base(message)
        {

        }

        /// <summary>
        /// 实例化 PayDataFormatException 类新实例
        /// </summary>
        /// <param name="message">消息</param>
        /// <param name="innerException">源异常</param>
        public PayDataFormatException(string message, Exception innerException)
            : base(message, innerException)
        {

        }

        /// <summary>
        /// 实例化 PayDataFormatException 类新实例
        /// </summary>
        /// <param name="info">信息</param>
        /// <param name="context">上下文</param>
        public PayDataFormatException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {

        }
    }
}
